<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>首页</title>
    <link type="text/css" rel="stylesheet" href="css/style.css" />
    <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="js/jquery-1.8.3.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var post;
            $.get("Posts/SelectShow",function (show) {
                JSON.stringify(show);

                /**
                 * index底端展示
                 * */
                $.get("Posts/SelectShow",function (show) {
                    JSON.stringify(show);
                    var highMoney=$("[div='highMoney']").val();
                    for (var i = 0; i <show.length ; i++) {
                        var divBox=document.createElement('div');
                        divBox.className = 'divBox';
                        $("<div class='divBox'>\n" +
                            "                <a><img src='images/money.jpg' width='84'/></a>\n" +
                            "                <p class=\"tit\"><a id='"+show[i].pid+"' class='gongzuo' name='"+show[i].eid+"'>'"+show[i].pname+"'</a></p>\n" +
                            "                <p class=\"sub\"><a id='"+show[i].eid+"' class='company' name='"+show[i].pid+"'>'"+show[i].fullAddress+"'</a></p>\n" +
                            "                <p class=\"num\"><span>'"+show[i].sal+"'</span></p>\n" +
                            "            </div>\n" +
                            "            <div class=\"lineBox\"></div>").appendTo(".highMoney");
                    }
                });
            });
            /**
             * 从登陆页面获取到uid
             */
            var uid = localStorage.getItem("uid");

            /**
             * 首页正上方搜索栏，单击“搜工作”，触发单击事件，将搜索栏的内容连带跳转链接传到新页面，进入新页面时将内容传回后端做模糊查询
             * 将查询结果传给前端（包括分页展示功能）
             */
            $("#search_btn").click(function () {
                post = $("#keywordInput").val();
                $("#keywordInput").empty();
                localStorage.setItem("pname",post);
                window.location = "searchJob.html";
            });

            /**
             * 这里对应一分钟生成简历功能，单机后进入简历页面
             */
            $("#jianli").on("click", function () {
                window.location = "resume.html";
            });


            /**
             * 左上角logo，单击可以返回首页
             */
            $("#shouye").on("click", function () {

                window.location = "index1.html";
            });

            /**
             * 对应左上角”个人中心“，单击进入个人信息编辑页面
             */
            $("#personal_resume").on("click", function () {

                window.location = "personal_resume.html";
            });

            /**
             * 对应左上角”我的职位“，单击进入到我的职位页面
             */
            $("#personal_selected").on("click", function () {

                window.location = "personal_selected.html";
            });

            $(document).on("click","[class='gongzuo']",function () {
                var eid= $(this).attr("name");
                localStorage.setItem("eid",eid);
                var pid= $(this).attr("id");
                localStorage.setItem("pid",pid);
                window.location.href="job_info.html";
            });

            $(document).on("click","[class='company']",function () {
                var eid= $(this).attr("id");
                localStorage.setItem("eid",eid);
                var pid= $(this).attr("name");
                localStorage.setItem("pid",pid);
                window.location.href="company.html";
            });


        });


    </script>
</head>

<body>
<div class="topDiv">
</div>
<div class="loginDiv">
    <div class="loginL">
        <img src="images/LOGO.png" />
        <img src="images/view_logo40.png" />
    </div>
    <div class="loginAddress">
        <div class="add1">
        </div>
    </div>
    <div class="loginC">
        <input id="keywordInput" type="text" placeholder="请填写关键词或选择职位..." />
        <button id="search_btn"></button>
    </div>
    <div class="loginR">
        <img src="images/spirit_40.png" />
    </div>
</div>
<div class="menuDiv">
    <a id="shouye" class="onnav">首页</a>
    <a id="personal_resume">个人中心</a>
    <a id="personal_selected">我的职位</a>
</div>
<div class="BodyMain">
    <div class="mainTop">
        <div class="mainTopL">
            <ul>
                <div class="items">
                    <div class="itemOne">
                        <span class="itme1"><b></b>销售|市场|客服|贸易</span>
                    </div>
                </div>
                <div class="items">
                    <div class="itemOne">
                        <span class="itme2"><b></b>经营管理|人事|行政|财务</span>
                    </div>
                </div>
                <div class="items">
                    <div class="itemOne">
                        <span class="itme3"><b></b>生产|质管|技工|物流</span>
                    </div>
                </div>
                <div class="items">
                    <div class="itemOne">
                        <span class="itme4"><b></b>教育|法律|咨询|翻译</span>
                    </div>
                </div>
                <div class="items">
                    <div class="itemOne">
                        <span class="itme5"><b></b>零售|家政|餐饮|旅游</span>
                    </div>
                </div>
                <div class="items">
                    <div class="itemOne">
                        <span class="itme6"><b></b>广告|媒体|艺术|出版</span>
                    </div>
                </div>
                <div class="items">
                    <div class="itemOne">
                        <span class="itme7"><b></b>IT|互联网|通信</span>
                    </div>
                </div>
            </ul>
        </div>
        <div class="mainTopR">
            <div class="ads">
                <div class="floatL" id="left"></div>
                <div class="adBox0">
                    <ul style="margin-left: 0px; overflow: hidden">
                        <li>
                            <a href="javascript:void(0)"><div style="background:url(images/ZjzAndGyz.png);background-size: cover;background-repeat: no-repeat;background-position: center"></div></a>
                        </li>
                        <li>
                            <a href="javascript:void(0)"><div style="background:url(images/2.jpg);background-size: cover;background-repeat: no-repeat;background-position: center"></div></a>
                        </li>
                        <li>
                            <a href="javascript:void(0)"><div style="background:url(images/3.gif);background-size: cover;background-repeat: no-repeat;background-position: center"></div></a>
                        </li>
                    </ul>
                </div>
                <div class="clear"> </div>
            </div>
            <div class="login">
                <div class="erweima">
                    <div class="close"></div>
                </div>
                <div class="logintop">
                    <div class="loginC loginA select">
                    </div>
                    <div class="loginC loginB">
                    </div>
                </div>
                <div class="loginmain">
                    <div class="ContentA">
                        <div class="txtbtn">
                            <div style="float:left">
                                <br /><div class="clear"></div>
                            </div>
                        </div>
                        <div class="zcbox">
                            <div class="zc2">
                                <a id="jianli"  class="a1">一分钟填写简历</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <div class="clear"></div>
    <div class="mainCon2">
        <div class="commontitdiv">
            <div class="title">高薪职位</div>
            <span>高薪就这么任性！</span>
        </div>
        <div class="clear"></div>
        <div class="highMoney">
            <!--            <div class="divBox">-->
            <!--                <a><img src="images/gyz2.jpg" width="84"/></a>-->
            <!--                <p class="tit"><a>橱柜设计</a></p>-->
            <!--                <p class="sub"><a>深圳维意定制家居用品有限公司</a></p>-->
            <!--                <p class="num"><span>8K-10K</span></p>-->
            <!--            </div>-->
            <div class="lineBox"></div>

        </div>
    </div>
    <div class="clear"></div>
</div>
<div class="footerLine"></div>
<div class="footer">
    <div class="footerdown">
    </div>
</div>
</body>


</html>
